package cn.cvs.chap4bootmybatis.service;

import cn.cvs.chap4bootmybatis.dao.EmployeeMapper;
import cn.cvs.chap4bootmybatis.entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeService {
    @Autowired
    EmployeeMapper employeeMapper;
    public Employee getEmp(Integer empno) {
        return employeeMapper.getOne(empno);
    }
}
